import { isHasPower } from "./tools";
export default (app: any) => {
  app.directive("has", {
    mounted(el: any, binding: any, vnode: any) {
      const value = binding.value;
      el.style.display = !!isHasPower(value) ? "" : "none";
    },
  });
};
